package com.kding.myapplication

import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.kding.deviceunique.interfaces.IgetUUIDListener
import com.kding.deviceunique.OAIDHelper
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        OAIDHelper.init(this, object : IgetUUIDListener {
            override fun returnUUID(uuid: String) {
                Log.e("TAG22", "$uuid")
                text.text = uuid
            }
        })

        button.setOnClickListener {
            var intent = Intent(MainActivity@ this, twoActivity::class.java)
            startActivity(intent)
            finish()
        }
    }
}

